*------------------------------------------------------------------------------*
*																			   *
*							Master-Dofile								   	   *
*																			   *
*------------------------------------------------------------------------------*

* Project: "Voting in Context" Book
* Title: "Always late? Stability and change in individuals‘ time of vote decisions"
* Author: Maria Preißinger 
* Date: Aug 23, 2016

/* This File executes all do-files of the project and replicates the whole
analysis */

clear
clear mata
clear matrix
version 14
set more off
set maxvar 32767 


* Code media content data
run "1_tvcontent2009"
run "2_tvcontent2013"

* Open Survey data
use "wkp0913_originaldatensätze_letters", clear

* code time final decision (dependent variable)
run "3_timedeci"

* code communication / merge media content data (independent variables)
run "4_communication"

* Make datset more managable
drop ?_kp?_*
save "always late all modifications", replace

* Present descriptive results
/* This file produces table 12.4, figure 12.2 & 12.3 */ 
run "5_descriptive results"

* rearrange data for survival analysis
use "always late all modifications", clear
run "6_rearrange data for survival analysis"

* tables survival analysis
/* this file reproduces table 12.5 & 12.6 */
run "7_tables survival analysis"

* figures survival analysis
/* this file reproduces figure 12.4 & 12.5 */
run "8_figures survival analysis"
